package me.zhengjie.sqlservilce;

import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.pojo.entity.WcsInboundMission;
import me.zhengjie.util.state.TaskStatus;

import java.util.List;

public interface WcsInboundMissionService extends IService<WcsInboundMission> {
    boolean insertInbound(WcsInboundMission wcsInboundMission);

    List<WcsInboundMission> selectContainerCode(String containerCode);

    boolean updateMissionStatus(String inboundCode, Integer missionStatus);

    WcsInboundMission selectInboundCode(String robotTaskCode);

    boolean updateMissionStatusAndAgvId(Integer id, Integer missionStatus, String agvId);

    boolean deleteInboundId(Integer id);

//    List<WcsInboundMission> selectStatusAndDestinationAndContainerTypePage(TaskStatus missionStatus, String destination, Integer containerType, Integer size);

    List<WcsInboundMission> selectContainerTypeAndInboundType(Integer containerType, Integer inboundType);

    List<WcsInboundMission> selectMissionStatus(Integer status);

    List<WcsInboundMission> selectContainerCodeUpdateDesc(String containerCode);

    boolean updateDestination(String inboundCode, String destination);

    List<WcsInboundMission> selectLtStatus(Integer status);

    WcsInboundMission selectStorageAndContainerCode(String source, String containerCode);

    //查询空料箱任务
    List<WcsInboundMission> queryEmptyMaterialBox(List<String> sourceList, Integer containerType, Integer page, Integer size);

    Integer queryEmptyMaterialBoxCount(List<String> sourceList, Integer containerType);
}

